#ifndef SYSTRAY_H
#define SYSTRAY_H

#include <QObject>
#include <QSystemTrayIcon>
#include <QMenu>

class CSysTray : public QObject
{
	Q_OBJECT

public:
	CSysTray(QWidget *parent, QIcon &trayIcon);
	~CSysTray();

public:
	void showSysTray();
	void hideSysTray();
	bool isVisible();

private slots:
	void activeSysTray(QSystemTrayIcon::ActivationReason reason);

private:
	QSystemTrayIcon *m_pSysTrayIcon;
	QMenu* m_pMenu;
	QWidget* m_pWgtParent;
};

#endif // SYSTRAY_H
